#include "sinks/console_sink.hpp"
#include <iostream> 

ConsoleSink::ConsoleSink(const std::string& sink_name) 
    : m_sinkName(sink_name) {
    m_writer = std::make_unique<axon_logger::io::ConsoleWriter>();
}  


ConsoleSink::~ConsoleSink() = default;


void ConsoleSink::log(LogLevel level, const std::string& formatted_message) {
    if (m_writer) {
        m_writer->write(level, formatted_message);
    }
}
